home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / conf / CSPP.m4 < prev    next >
Text File  |  1997-07-22  |  798b  |  24 lines

  1. divert(-1)
  2. undefine(`len')
  3. #
  4. #   This generates two copies of each libfpvm function, one with
  5. #   a trailing underscore and one without, so the resulting libfpvm
  6. #   works whether or not you use -qextname.
  7. #   For more comments, see the HPPA m4 file.
  8. define(`FUNCTION',ifdef(`USCORYES',`$1_',`$1'))
  9.  
  10. #define(`FUNCTION',`$1')
  11. #
  12. # FORTRAN character strings are passed as follows:
  13. # a pointer to the base of the string is passed in the normal
  14. # argument list, and the length is passed by value as an extra
  15. # argument, after all of the other arguments.
  16. #
  17. define(`ARGS',`($1`'undivert(1))')
  18. define(`SAVE',`divert(1)$1`'divert(0)')
  19. define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
  20. define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
  21. define(`STRING_LEN',`$1_len')
  22. define(`STRING_PTR',`$1_ptr')
  23. divert(0)
  24.